<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    @media screen and (min-width: 400px) {
      .box {
        width: 200px;
        height: 200px;
      }
    }

    .box {
      width: 100px;
      height: 100px;
      background-color: red;
      transition: all 1s ease-in-out;
    }

    .box:hover {
      /* transform: translateX(50px); */
      /* transform: rotate(45deg); */
      /* animation: rotate 2s cubic-bezier(.34, 0, .84, 1) infinite; */
      transform: rotateZ(666turn);
      transition-duration: 59s cubic-bezier(.34, 0, .84, 1);
    }
  </style>
</head>

<body>
  <div class="box"></div>


</body>

</html>